package pay.redis.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Redisson 配置类
 *
 */
@Data
@Configuration
public class RedissonConfig {

	@Value("${spring.redis.host:}")
	private String host;

	@Value("${spring.redis.port:}")
	private String port;

	@Value("${spring.redis.password:}")
	private String password;

    private int connectionPoolSize = 64;

    private int connectionMinimumIdleSize=10;

    private int slaveConnectionPoolSize = 250;

    private int masterConnectionPoolSize = 250;

    private String[] sentinelAddresses;

    private String masterName;

}
